package com.example.demo.Controller;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class YmlController {
    @Value("${spring.datasource.url}")
    public String url;
    @Value("${spring.datasource.username}")
    public String username;

    @PostConstruct
    public void readValue(){
        System.out.println("YmlUrl="+url);
        System.out.println("YmlUsername="+username);
    }
}
